/**
 * Created by 11851 on 2020/3/3.
 */
define(function (require, exports) {
  // page加载完成后调用ready方法
  exports.ready = function (hashCode, data, cite) {
    yufp.custom.vue({
      el: cite.el,
      data: function () {
        return {
          form: data.instanceInfo,
		  flowParam: data.flowParam,
		  item:[],
		  collapseValue: '1'
        };
      },
      methods: {
		  saveFn: function(){
			  //把业务参数传回主详情页面用于提交
			  yufp.router.sendMessage('instanceInfo', '01', this.flowParam);
		  }
      }
    });
  };
  //监听提交时发送的信息,调用方法吧业务参数传回主详情页面用于提交
  exports.onmessage = function (type, message, cite, vm) {
    if (type == '01') {
      vm.saveFn();
    }
  };
});